package com.module2;

//通话套餐类 特征：通话时长、短信条数、每月资费 行为: 显示所有套餐信息。
//继承抽象套餐类，继承通话服务接口
public class Q3_CallPlan extends Q3_AbstractPlan implements Q3_CallService{
    double callTime;
    int messageCount;
    Q3_PhoneCard phone =new  Q3_PhoneCard();
    public Q3_CallPlan(){
        System.out.println("调用Q3_CallPlan通话套餐类");
    }
    @Override
    public void show(){
        System.out.println("通话时长："+callTime +" 短信数："+messageCount+" 月花费："+ monthCost);
    }

    @Override
    public void call(double callTime,Q3_PhoneCard phoneCard) {
        System.out.println("重写了Q3_CallService接口中的call方法");
    }
}
